import {
  request,
  _post,
  _get
} from '../request';

export function exit(data) {
  return _post({
    url: `crm/pt/agent-users/action/logout`,
    data,
  });
}

export function refreshToken(data) {
  return _post({
    url: `crm/pb/agent-users/action/refreshToken`,
    data,
  });
}

export function doLogin(data) {
  // 员工端登录
  return _post({
    url: `crm/pb/emp-users/action/login-app`,
    data,
  });
  // 代理商登录
}

export function doAgentLogin(data) {
  // 员工端登录
  return _post({
    // /
    url: `crm/pb/agent-users/action/login-app`,
    data,
  });
  // 代理商登录
}

export function staticCount(data) {
  return _get({
    url: `crm/pt/stats/action/agent-stats`,
    data,
  });
}